package svc

import (
	"github.com/zeromicro/go-zero/zrpc"
	"healthzy3/api/internal/config"
	"healthzy3/healthzy3rpc/healthzy3rpcclient"
)

type ServiceContext struct {
	Config    config.Config
	HealthZy3 healthzy3rpcclient.Healthzy3rpc
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config:    c,
		HealthZy3: healthzy3rpcclient.NewHealthzy3rpc(zrpc.MustNewClient(c.HealthZy3)),
	}
}
